projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f664e3c
)
use 6 digits after the decimal point for osm_name_from_wpt. (#1053)
author
tsteven4
<13596209+tsteven4@users.noreply.github.com>
Fri, 31 Mar 2023 16:37:08 +0000
(10:37 -0600)
committer
GitHub
<noreply@github.com>
Fri, 31 Mar 2023 16:37:08 +0000
(10:37 -0600)
I beleive this restores the behavior from before commit
4673a25
,
August 4, 2013.
This should resolve #1047.
osm.cc
patch
|
blob
|
history
diff --git
a/osm.cc
b/osm.cc
index dbd44cd464c05446b7d9c7a8b097899341030b52..5e3691d0e6a0321025b09e5c4a7941347bbc60e9 100644
(file)
--- a/
osm.cc
+++ b/
osm.cc
@@
-692,8
+692,8
@@
OsmFormat::osm_name_from_wpt(const Waypoint* waypoint)
{
QString name = QString("%1\01%2\01%3")
.arg(waypoint->shortname)
- .arg(waypoint->latitude)
- .arg(waypoint->longitude);
+ .arg(waypoint->latitude
, 0, 'f', 6
)
+ .arg(waypoint->longitude
, 0, 'f', 6
);
return name;
}